package com.itheima.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Attendance implements Serializable {
    private static final long serialVersionUID=1L;
    @TableId(type= IdType.AUTO)
    private Integer id; //ID
    private String employeeName; //员工名称
    private Integer employeeId; //员工id
    private String attendanceDate; //考勤日期
    private String checkinTime; //签到时间
    private String checkoutTime; //签退时间
    private Integer status;//考勤状态1正常2迟到3早退4旷工
    private String remark;//考勤描述

    // 构造函数
    public Attendance(Integer employeeId,String employeeName, String attendanceDate, String checkinTime, String checkoutTime, Integer status, String remark) {
        this.employeeId=employeeId;
        this.employeeName = employeeName; // 员工姓名
        this.attendanceDate = attendanceDate; // 考勤日期
        this.checkinTime = checkinTime; // 上班时间
        this.checkoutTime = checkoutTime; // 下班时间
        this.status = status; // 考勤状态（如正常、迟到等）
        this.remark = remark; // 备注
    }
}
